#ifndef PARSE_EXCEPTION
#define PARSE_EXCEPTION

#include <exception>
#include <string>

using namespace std;

namespace network {
	class parse_exception : public std::exception {
	public:
		parse_exception(const string &str): _error(str) {}
		virtual ~parse_exception() throw() {}
		virtual const char* what() const throw() 
		{
			return _error.c_str();
		}
	private:
		string _error;
	};
}

#endif
